//api使用工具拦截(引入)
import service from "@/util/request.js"
export function classifyzu(){
    return new Promise((resolve,reject)=>{
        service.request({
            // url:"/api/goods/selectAll",
            // url:"/api/personOrder/getPersonOrders",
            // params:{
            //     uid:1, 
            // },  
            // data{`usname:1&upass:2`}
            url:"/api/xiaomipro/goods/youpintuijian3",
            method:"get",
        }).then((ok)=>{
            resolve(ok)
            // console.log(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}
export function classifyzu1(){
    return new Promise((resolve,reject)=>{
        service.request({
            url:"/api/xiaomipro/goods/jiayongdianqi3",
            method:"get",
        }).then((ok)=>{
            resolve(ok)
            // console.log(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}
export function classifyzu2(){
    return new Promise((resolve,reject)=>{
        service.request({
            url:"/api/xiaomipro/goods/jiayongdian23",
            method:"get",
        }).then((ok)=>{
            resolve(ok)
            // console.log(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}

export function list(){
    return new Promise((resolve,reject)=>{
        service.request({
            url:"list",
            method:"get"
        }).then((ok)=>{
            resolve(ok)
        }).catch((err)=>{
            reject(err)
        })
    })
}

